package cn.tedu._02notice.controller;

import cn.tedu._02notice.pojo.dto.UserLoginParam;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("v1/user/")
@Tag(name="用户管理模块")
public class UserController {
    @PostMapping("login")
    public String login(@RequestBody UserLoginParam userLoginParam){
        System.out.println("userLoginParam="+userLoginParam);
        return "登陆成功";
        //http://localhost:8080/login.html 就相当于login.html这是前端代码
    }
}
